package com.zjitc.pigspring.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zjitc.pigspring.bean.po.Address;
import com.zjitc.pigspring.mapper.AddressMapper;
import com.zjitc.pigspring.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements AddressService {

    @Autowired
    private AddressMapper addressMapper;

    @Override
    public boolean deleteByUserId(Integer id) {
        return addressMapper.deleteByUserId(id);
    }
}
